package cn.levi.sensitive.configuration;

import cn.levi.sensitive.enums.SensitiveCacheType;
import cn.levi.sensitive.enums.SensitiveStrategy;
import cn.levi.sensitive.exceptions.SensitiveException;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author lei
 * @since 2025/2/18
 */
@Configuration
@ConfigurationProperties(prefix = "simple-tool.sensitive")
@Data
public class SensitiveProperties {

	/**
	 * 是否开启敏感词检测,默认开启
	 */
	private boolean enable = true;

	/**
	 * 敏感词处理策略，默认替换敏感词
	 */
	private SensitiveStrategy strategy = SensitiveStrategy.REPLACE;

	/**
	 * 铭感词是替换成字符，默认*
	 */
	private Character maskChar = '*';

}
